package tgc.edu.tms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.tms.custom.CommonService;
import tgc.edu.tms.entity.Teacher;
import tgc.edu.tms.repository.TeacherRepository;
@Service
public class TeacherService extends CommonService<Teacher, Integer>{
	@Autowired
	private TeacherRepository teacherDAO;

	public List<Teacher> findByDeptId(Integer value) {
		return teacherDAO.findByDeptId(value);
	}

	public Teacher findByUsername(String teacher) {
		
		return teacherDAO.findByUsername(teacher);
	}

	public Teacher findByName(String teacher) {
		return teacherDAO.findByName(teacher);
	}
}
